<template>
	<router-link :to='path' class="wrapper">
		<i class="icon">{{iconText}}</i>
		<p>
			<slot></slot>
		</p>
	</router-link>
</template>

<script>
export default {
	setup () {
		

		return {}
	}
	,props:{
		iconText:String,
		path:String,
	}
}
</script>

<style lang="less" scoped>
	.wrapper{
		font-size: .12rem;
		.icon{
			display: flex;
			justify-content: center;
			align-items: center;
			width: .25rem;
			height: .25rem;
			background: #ddd;
			color: #fff;
			border-radius: 50%;
			transform: all 0.5s;
		}
		.text{
			text-align: center;
			margin-top: 0.02rem;
			color: #999;
			transition: all 0.5rem;
		}
		&.router-link-active{
			.icon{
				background: #ed4040;
				color: #fff;
			}
		}
	}
</style>